package com.ruoyi.common.core.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BusinessData implements Serializable {

    private static final long serialVersionUID = 1L;

    private String name = "";

    private String value = "";

    private String valueName = "";

    private Boolean required = false;

    private Boolean vectorization = false;

    public BusinessData(String name, String value, Boolean required, String valueName) {
        this.name = name;
        this.value = value;
        this.required = required;
        this.valueName = valueName;
    }

    public BusinessData(String name, String value, Boolean required) {
        this.name = name;
        this.value = value;
        this.required = required;
        this.valueName = "";
    }

    public BusinessData() {

    }

    public BusinessData(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public BusinessData(String name, String value, String valueName) {
        this.name = name;
        this.value = value;
        this.valueName = valueName;
    }
}
